checkout: Fix SELinux policy labeling when recursing
authorColin Walters <walters@verbum.org>
Fri, 16 Jun 2017 14:36:28 +0000 (10:36 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 16 Jun 2017 14:54:29 +0000 (14:54 +0000)
commit371b4a5e7e179da26c18ac40ab0a2f66c3d89150
tree8cf8e7740ed24e27753d8c35da3f34d408df9be7
parent2bab43fb224edc5b0bfacc79881e387b8de67c4a
checkout: Fix SELinux policy labeling when recursing

The code here tried to truncate the string to the previous length,
but that doesn't work when recursing, since further calls change the
length.

What actually ended up happening was the string would get corrupted
after the first level of recursion.

Closes: #936
Approved by: jlebon
src/libostree/ostree-repo-checkout.c
tests/installed/itest-deploy-selinux.sh